<?php 
include("../inc/conn.inc");
$sql="select * from hot_pro where id=".$_GET['id']." and p_sh=1";
$rs=@mysql_query($sql);
$row=@mysql_fetch_array($rs);
$m_sql="select id,m_type,m_user,m_name,m_cname,m_sex,c_type,c_mode,m_ts_tel,m_pic from member where id='".$row['member_id']."'";
$m_rs=@mysql_query($m_sql);
$m_row=@mysql_fetch_array($m_rs);
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn/";
   $m_url2="http://$m_row[m_user].sandib2b.cn/contact.htm";
   $m_url3="http://$m_row[m_user].sandib2b.cn/company.htm";
   $m_url4="http://$m_row[m_user].sandib2b.cn/hot-list/1.htm";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
   $m_url2="/cn/template/$m_row[m_user]/contact.html";
   $m_url3="/cn/template/$m_row[m_user]/company.html";
   $m_url4="http://www.sandib2b.cn/cn/template/$m_row[m_user]/hot-list/1.html";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$row[p_title]?>图片展示</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/link.css" rel="stylesheet" type="text/css" />
<link href="/css/head_1.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/Supply/css/content.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#Layer1 {
	height: 230px;
	width: 260px;
	position: absolute;
	top: 224px;
}
-->
</style>
</head>
<body>
<?php include("../inc/head_top.php")?>
<div class="top1">
<div style="float:left;width:388px;"><a href="/"><img src="/images/logo.gif" alt="三帝贸易网" border="0"/></a></div>
<div class="top2menu">
<a href="/">三帝首页</a>
<a href="/supply" class="hover">供应</a>
<a href="/buy">求购</a>
<a href="/company">公司库</a>
<div class="onl"></div>
</div>
<div class="top2search">
<form method="get" action="/supply/search.php" onsubmit="return prosearch()">
<ul>
<li style="padding-top:1px;width:20px;">
</li>
<li><input name="subject" id="subject" type="text" class="input" /></li>
<li style="padding-top:1px;"><input type="image" src="/images/3.gif"  /></li>
</ul>
</form>
<div class="onl"></div>
</div>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function prosearch(){
if($("subject").value==""){
alert("请输入产品名称");
$("subject").focus();
return false;
}
}
</script>
<div class="onl"></div>
</div>
<div id="mian" class="topside6 side">
<div class="title1"><a href="/supply/<?=$row['id']?>.html"> << 返回 <?=$row[p_title]?></a></div>
<div class="onl"></div>
</div>
<div class="w960 topside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6 sideyellow1">
<div class="title4 size14 b fontwhite"><?=$row[p_title]?></div>
<div class="leftmain topside6">
  <div align="center" style="margin:20px;"><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 468x60, 创建于 11-3-18 */
google_ad_slot = "2442297650";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<br />
<br />

  <div align="center"><input type="button" value="放大" onClick="imgToSize(1);">
      <input type="button" value="缩小" onClick="imgToSize(0);">
      <input type="button" value="翻转90°" onClick="imgRoll();">
      <input type="button" value="水平翻转" onClick="imgReverse('H');"> 
      <input type="button" value="垂直翻转" onClick="imgReverse('V');"></div>
<div align="center">
<br />
<br />

<?php if($row[picture]){?>
<img id="oImg" src="http://img.sandib2b.cn/<?=$row[picture]?>" style="position:relative; zoom:100%;  cursor:move;" onMouseDown="mStart();" onMouseUp="mEnd();"><?php }else{?><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 300x250, 创建于 11-3-13 */
google_ad_slot = "5018549541";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><?php }?>
</div>
<div align="center" style="margin:20px;"><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 468x60, 创建于 11-3-18 */
google_ad_slot = "2442297650";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</div>
<div class="rightmain topside6 rightside6 downside6">
<ul class="companyinfo">
<li><span class="size18 fontblue"><?=$m_row['m_cname']?></span></li>
<li class="topside6">&nbsp;&nbsp;<a href="<?=$m_url?>" target="_blank"><img src="/Supply/images/home.gif" alt="<?=$m_row['m_cname']?>" width="104" height="29" border="0" /></a>&nbsp;&nbsp;<a href="<?=$m_url2?>" target="_blank"><img src="/Supply/images/contact.gif" alt="联系方式-<?=$m_row['m_cname']?>" width="120" height="29" border="0" /></a></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url3?>" target="_blank">公司介绍</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url4?>" target="_blank">公司产品</a></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;联系人：<?=$m_row[m_name]?>[<?=$m_row[m_sex]?>]</li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;企业类型：<?=$m_row['c_type']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;经营模式：<?=$m_row['c_mode']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;会员等级：<?php if($m_row['m_type']==6){?><a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member.gif" border="0" align="absmiddle" /></a><?php }else{echo "普通会员";}?></li>
<?php if($m_row[m_ts_tel]){?><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tel400">免费电话：<b class="fontred"><?=$m_row[m_ts_tel]?></b></span></li><?php }?>
<br /><br />
</ul>
</div>
<?php if($row[picture]){?>
<div class="rightmain topside6 rightside6 downside6">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 250x250, 创建于 11-3-18 */
google_ad_slot = "0029223338";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<?php }?>
<div class="onl"></div>
</div>

<div class="w960 topside6 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6 sideyellow1">
<div class="title3 size12"><div class="more"><a href="<?=$m_url4?>" target="_blank">更多产品&nbsp;&nbsp;<?php echo $m_url4?></a>&nbsp;&nbsp;</div><span>该企业更多产品</span>
<div class="onl"></div>
</div>
<div class="company">
<ul>
<?php 
$mp_rs=@mysql_query("select id,p_title,picture from hot_pro where member_id='".$row['member_id']."' order by id desc limit 6");
while($mp_row=@mysql_fetch_array($mp_rs)){
?>
<li><a href="<?=$mp_row[id]?>.html">
<?php if(trim($mp_row[picture])){?>
<img src="http://img.sandib2b.cn/<?=$mp_row[picture]?>" width="120" height="125" border="0" />
<?php }else{?>
<img src="/images/prono88.gif" width="120" height="125" border="0" />
<?php }?></a>
<span><a href="<?=$mp_row[id]?>.html"><?=mb_substr($mp_row[p_title],0,10,'utf-8')?></a></span></li>
<?php }mysql_free_result($mp_rs);?>
</ul>
<div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<div id="mian" class="topside6 sideyellow1">
<div class="title3 size12"><span>相关产品</span>
<div class="onl"></div>
</div>
<div class="company">
<ul>
<?php
if($row[catalog_id3]){
$sqls=" and catalog_id3=".$row[catalog_id3];
}elseif($row[catalog_id2]){
$sqls=" and catalog_id2=".$row[catalog_id2];
}elseif($row[catalog_id1]){
$sqls=" and catalog_id1=".$row[catalog_id1];
}
$p_rs=@mysql_query("select id,p_title,picture from hot_pro where p_sh=1 ".$sqls." limit 6");
while($p_row=@mysql_fetch_array($p_rs)){
?>
<li><a href="<?=$p_row['id']?>.html">
<?php if(trim($p_row['picture'])){?>
<img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="120" height="125" border="0" />
<?php }else{?>
<img src="/images/prono88.gif" width="120" height="125" border="0" />
<?php }?>
</a>
<span><a href="<?=$p_row['id']?>.html"><?=mb_substr($p_row['p_title'],0,10,'utf-8')?></a></span></li>
<?php }?>
</ul>
<div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<div class="w960 topside20 downside6 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>
<div id="mian" class="topside6">
<div class="content size14 ">
免责声明:以上信息由企业自行提供，该企业负责信息内容的真实性、准确性和合法性，三帝贸易网对此不承担任何责任。
<br />
友情提示:为保障您的利益，建议优先选择钻石会员。（请您在交易时一定要慎重，付款最好选择第三方担保支付平台。）<br />
<font color="#FF0000"><b>为了节省您的时间，您在求购过程中没找到合适产品或供应商，请发布紧急求购产品信息。让商家联系您。&nbsp;&nbsp;<a href="/caigou/" target="_blank">立即发布紧急求购</a></b></font>
</div>
</div>
<?php include("../inc/foot.php");?>
</body>
</html>

<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>


<script Language="javascript">
   
   function imgToSize(oBool) {
     var oImg = document.all('oImg');
     oImg.style.zoom = parseInt(oImg.style.zoom) + (oBool ? 30 : -30) + '%';
   }

   var oArcSize = 1;
   function imgRoll() {
     var oImg = document.all('oImg');
     oImg.style.filter = 'Progid:DXImageTransform.Microsoft.BasicImage(Rotation='+ oArcSize +')';
     oArcSize += 1;
     oArcSize = oArcSize==4 ? 0 : oArcSize ;
   }

   function imgReverse(arg) {
     var oImg = document.all('oImg');
     oImg.style.filter = 'Flip' + arg;          
   }
   
   var oBoolean = false, oLeftSpace = 0, oTopSpace = 0;
   function mStart() {
      oBoolean = true;
      if (oBoolean) {
         var oImg = document.all('oImg');
         oLeftSpace = window.event.clientX - oImg.style.pixelLeft;
         oTopSpace = window.event.clientY - oImg.style.pixelTop;
      }
   }

   function mEnd() {
      oBoolean = false;
   }

   function document.onmousemove() {
      if (window.event.button==1 && oBoolean) {
         var oImg = document.all('oImg');
         oImg.style.pixelLeft = window.event.clientX - oLeftSpace;
         oImg.style.pixelTop = window.event.clientY - oTopSpace;
         return false;
      }
   }
</script>